﻿using Microsoft.Xna.Framework.Input;
using Soundteller.AudioVisual.Model;
using Microsoft.Xna.Framework.Input.Touch;

namespace Soundteller.Phone.Facade.Mappers
{
    public static class TouchLocationToPadTouchArgumentsMapper
    {
        public static PadTouchArguments Map(TouchLocation source)
        {
            if (source == null) return null;

            return new PadTouchArguments
            {
                X = (int)source.Position.X,
                Y = (int)source.Position.Y
            };
        }
    }
}
